package com.jdiv;

import java.awt.image.BufferedImage;

/**
 * @author  Joyal
 */
public class JScroll {
	 public	int
	 		 id;

	public int fpg;

	public int region;

	public int flags;

	public int file;

	public int x0;

	public int x1;

	public int y0;

	public int y1;

	public int old_x0;

	public int old_y0;

	public int graph;

	public int background;

	public int camera;

	public int old_cX;

	public int old_cY;
	 
	 public boolean run=true;

	public boolean init=false;

	public boolean blockX=false;

	public boolean blockY=false;
	 /**
	 * @uml.property  name="image"
	 */
	public BufferedImage image=null;

	/**
	 * @uml.property  name="backgroundImage"
	 */
	public BufferedImage backgroundImage=null;
	 
	 public JScroll(int id, int fpg, int graph, int background, int region, int flags){
		 this.id=id;
		 this.fpg=fpg;
		 this.graph=graph;
		 this.background=background;
		 this.region=region;
		 this.flags=flags;
		 
		 file=0;
		 x0=0;
		 y0=0;
		 
		 x1=0;
		 y1=0;
		 
		 old_x0=x0;
		 old_y0=y0;
		 
		 old_cX=0;
		 old_cY=0;
		 
		 camera=-1;
	 }
	 
	 public JScroll(){
		 this.id=0;
		 this.fpg=0;
		 this.graph=0;
		 this.background=0;
		 this.region=0;
		 this.flags=0;
		 
		 file=0;
		 x0=0;
		 y0=0;
		 
		 x1=0;
		 y1=0;
		 run=false;
		 
		 old_x0=x0;
		 old_y0=y0;
		 
		 camera=-1;
	 }
	 /**
	 * @param backgroundImage
	 * @uml.property  name="backgroundImage"
	 */
	public void setBackgroundImage(BufferedImage backgroundImage) {
			this.backgroundImage = backgroundImage;
		}

		/**
		 * @param image
		 * @uml.property  name="image"
		 */
		public void setImage(BufferedImage image) {
			this.image = image;
		}

	 /**
	 * @return
	 * @uml.property  name="backgroundImage"
	 */
	public BufferedImage getBackgroundImage() {
			return backgroundImage;
		}
		 
		 /**
		 * @return
		 * @uml.property  name="image"
		 */
		public BufferedImage getImage() {
			return image;
		}
		
			 
}
